import config from "@/config"
import http from "@/utils/request"
export default {
	//添加收付款数据
	Sfk: {
		url: `${config.API_URL}/Cw/Sfk`,
		name: "添加收付款数据",
		headers: {
			'Content-Type': 'application/json'
		},
		post: async function(data){
			return await http.post(this.url,data);
		}
	},
	//获取收付款数据
	GetSfk: {
		url: `${config.API_URL}/Cw/GetSfk`,
		name: "获取收付款数据",
		get: async function(bm){
			return await http.get(this.url+`/${bm}`);
		}
	},
	//获取银行
	Getyhck:{
		url: `${config.API_URL}/Cw/Getyhck`,
		name: "获取银行",
		get: async function(rq,zz){
			return await http.get(this.url+`/${rq}`+`/${zz}`);
		}
	},
	GetyhckRq:{
		url: `${config.API_URL}/Cw/GetyhckRq`,
		name: "获取当天日期",
		get:  function(){
			return  http.get(this.url);
		}
	},
	//银行存款数据录入
	Addyhck: {
		url: `${config.API_URL}/Cw/Addyhck`,
		name: "银行存款数据录入",
		headers: {
			'Content-Type': 'application/json'
		},
		post: async function(data){
			return await http.post(this.url,data);
		},

	},
}
